package com.cy.sys.log.pojo;

import java.io.Serializable;

import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
@Data
public class pageObject<T> implements Serializable{
	private static final long serialVersionUID = 2204260081340627354L;
	//总页码值(计算所得总页码)
	private Integer pageCount;
	//显示多少条
	private Integer pageSize;
	//总行数
	private Integer rowCount;
	//当前页码值
	private Integer pageCurrent;
	
	private List<T> recosd;

	public pageObject(Integer pageSize, Integer rowCount, Integer pageCurrent, List<T> recosd) {
		super();
		this.pageSize = pageSize;
		this.rowCount = rowCount;
		this.pageCurrent = pageCurrent;
		this.recosd = recosd;
		//总页数
		this.pageCount=(rowCount+1)/pageSize;
	}
	
	
}
